package com.bc.bcapi.dao;

import com.bc.bcmodel.domain.T_Project_analysisModel;
import com.bc.bcmodel.req.*;
import com.bc.bcmodel.resp.ElitesAnalysisListBaseResp;
import com.bc.bcmodel.resp.ElitesAnalysisListResp;
import com.bc.bcmodel.resp.ProjectAnalysisListBaseResp;
import com.bc.bcmodel.resp.ProjectAnalysisListResp;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * @Name T_Project_analysisMapper * @Description * @Author generation * @Date 2018/8/29 12:57:27 * @Version 1.0
 **/
public interface T_Project_analysisMapper extends BaseMapper<T_Project_analysisModel> {
    List<ProjectAnalysisListBaseResp> getAnalysisList(ProjectAnalysisListReq req);

    int updateGoodCount(ProjectAnalysisSetGoodReq req);

    String getAidByPid(AnalysisSetReq req);

    List<ElitesAnalysisListResp> getElitesProject(ElitesAnalysisListReq req);

    List<ElitesAnalysisListBaseResp> getElitesAnalysislist(IdsReq req);

    /**
     * 通过用户ID，项目ID查询该用户是否有评论过
     * */
    int getAnalysisCountByUserIdPid(ProjectAnalysisListReq req);
}